package com.gm.springboot.service.impl;

import com.gm.springboot.bean.UserInfo;
import com.gm.springboot.mapper.UserMapper;
import com.gm.springboot.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author Administrator
 * @Date 2020/7/2 14:11
 **/
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public UserInfo findUserByName(String username) {
        return this.userMapper.findUserByName(username);
    }

    @Override
    public int addUser(UserInfo userInfo) {
        return this.userMapper.addUser(userInfo);
    }
}
